package org.hfy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.hfy.entity.QuotationCost;

import java.util.List;

/**
 * 报价成本信息Mapper接口
 * 
 * @author hfy
 * @version 1.0
 */
@Mapper
public interface QuotationCostMapper extends BaseMapper<QuotationCost> {

    /**
     * 根据报价单ID查询成本信息列表
     */
    List<QuotationCost> selectByQuotationId(@Param("quotationId") Long quotationId);

    /**
     * 根据报价单ID删除成本信息
     */
    int deleteByQuotationId(@Param("quotationId") Long quotationId);

    /**
     * 批量插入成本信息
     */
    int insertBatch(@Param("costs") List<QuotationCost> costs);

    /**
     * 批量更新成本信息
     */
    int updateBatch(@Param("costs") List<QuotationCost> costs);
} 